package com.baylor.server.business.entity;

import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "userInfo")
public class UserInfo implements Serializable {
	/**SELECT * FROM hrhztest.user_info;
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer userId;
	private String userName;//用户姓名
	private String userPassword;//登录密码
	private String userSex;//男：男；女：女；
	private String userPhone;//手机号
	private String userEmail;
	private String industry;//行业：1光通信：光通信;2LED:LED;3精密光学：精密光学；5激光红外：激光红外；4其他：其他
	private String userRegister;//注册时间
	private String userType;//用户类型      观众用户：观众用户；CIOE用户：CIOE用户；(展商用户在展商用户表中)
	private Integer zhOren;//中英文 1:中文；2：英文  
	private Integer userState;//登录状态   1:已登录，0:未登录，3:禁止登录，2:激活登陆
	private String entraceState;//入场状态   是：是 ；否：否；
	private String userPhoto;
	private float prizeNum;//抽奖次数
	private String userCompany;//所在公司
	
	private String area;//地区：1：大陆；2：海外
	private String goal;//参观目的  1：产品采购；2：了解市场；3：寻求新产品技术；4：寻求代理及合作 5：维护拓展业务 6：参加研讨会 7：为下届参展准备        多个目的时，用  ， 隔开
	private String pushId;//推送id
	
//	private List<Meeting> meetingList=new ArrayList<Meeting>();	//用户预约过的会议活动
	
	@Column(name = "area")
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	@Column(name = "goal")
	public String getGoal() {
		return goal;
	}
	public void setGoal(String goal) {
		this.goal = goal;
	}
	@Column(name = "entraceState")
	public String getEntraceState() {
		return entraceState;
	}
	public void setEntraceState(String entraceState) {
		this.entraceState = entraceState;
	}

	@Column(name = "userCompany")
	public String getUserCompany() {
		return userCompany;
	}
	public void setUserCompany(String userCompany) {
		this.userCompany = userCompany;
	}
	@Column(name = "userPhoto")
	public String getUserPhoto() {
		return userPhoto;
	}
	public void setUserPhoto(String userPhoto) {
		this.userPhoto = userPhoto;
	}
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "userName")
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	@Column(name = "userPassword")
	public String getUserPassword() {
		return userPassword;
	}
	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	@Column(name = "userSex")
	public String getUserSex() {
		return userSex;
	}
	public void setUserSex(String userSex) {
		this.userSex = userSex;
	}
	@Column(name = "userPhone")
	public String getUserPhone() {
		return userPhone;
	}
	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}
	@Column(name = "userEmail")
	public String getUserEmail() {
		return userEmail;
	}
	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
	@Column(name = "industry")
	public String getIndustry() {
		return industry;
	}
	public void setIndustry(String industry) {
		this.industry = industry;
	}
	@Column(name = "userRegister")
	public String getUserRegister() {
		return userRegister;
	}
	public void setUserRegister(String userRegister) {
		this.userRegister = userRegister;
	}
	@Column(name = "userType")
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	@Column(name = "zhOren")
	public Integer getZhOren() {
		return zhOren;
	}
	public void setZhOren(Integer zhOren) {
		this.zhOren = zhOren;
	}
	@Column(name = "userState")
	public Integer getUserState() {
		return userState;
	}
	public void setUserState(Integer userState) {
		this.userState = userState;
	}

    @Column(name = "prizeNum")
    public float getPrizeNum() {
        return prizeNum;
    }
    public void setPrizeNum(float prizeNum) {
        this.prizeNum = prizeNum;
    }


	/**
	 * 推送id
	 * @return
	 */
	@Column(name = "push_id")
	public String getPushId() {
		return pushId;
	}
	public void setPushId(String pushId) {
		this.pushId = pushId;
	}
	
	/***
	 * 用户和会议之间多对多的关系。
	 * @return
	 */
//	@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
//	@JoinTable(name = "user_meeting",
//    joinColumns = { @JoinColumn(name = "userid", referencedColumnName = "userId")}, 
//    inverseJoinColumns = { @JoinColumn(name = "meetingid", referencedColumnName = "id") }
//    )
//	public List<Meeting> getMeetingList() {
//		return meetingList;
//	}
//	public void setMeetingList(List<Meeting> meetingList) {
//		this.meetingList = meetingList;
//	}
	
}
